<template>
  <div class="now-loading" :style="{backgroundColor:mycolor}">
    <van-button class="loading" loading-size="50px" loading type="primary" loading-type="spinner" />
  </div>
</template>

<script setup lang="ts">
const props = defineProps(['mycolor']);
</script>

<style lang="scss" scoped>
.now-loading {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  background-color: #fff;
  z-index: 10000;
  .loading {
    position: absolute;
    background-color: #595959;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 15rem;
    height: 10rem;
    border-radius: 1rem;
    border: none;
  }
}
</style>